package com.dubbo.demo.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @author: yidujun
 * @create: 2021/11/11 15:51
 */
@ConfigurationProperties(prefix = "people")
public class PeopleProperties {

    private String userName;

    @NestedConfigurationProperty
    private HeadProperties headProperties = new HeadProperties();

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public HeadProperties getHeadProperties() {
        return headProperties;
    }

    public void setHeadProperties(HeadProperties headProperties) {
        this.headProperties = headProperties;
    }
}
